import util from '../utils';

const domain = process.env.mon;
const env = process.env.NODE_ENV === 'development' ? '/api' : domain;
const instance = util.request(env || '');

export function server_systemUser_login<T = any>(opts?: any) {
  return instance({
    method: 'post',
    url: '/server/systemUser/login',
    opts,
  });
}
// 新增极差奖励
export function server_notes_add<T = any>(opts?: any) {
  return instance({
    method: 'post',
    url: '/server/notes/add',
    opts,
  });
}
// 清空积分
export function server_notes_clear_points<T = any>(opts?: any) {
  return instance({
    method: 'post',
    url: '/server/notes/clear/points',
    opts,
  });
}
// 明细列表导出
export function server_notes_detail_list<T = any>(opts?: any) {
  return instance({
    method: 'post',
    url: '/server/notes/detail/list',
    opts,
  });
}
// 明细列表分页
export function server_notes_detail_page<T = any>(opts?: any) {
  return instance({
    method: 'post',
    url: '/server/notes/detail/page',
    opts,
  });
}
// 待划拨积分列表导出
export function server_notes_integral_list<T = any>(opts?: any) {
  return instance({
    method: 'post',
    url: '/server/notes/integral/list',
    opts,
  });
}
// 待划拨积分列表分页
export function server_notes_integral_page<T = any>(opts?: any) {
  return instance({
    method: 'post',
    url: '/server/notes/integral/page',
    opts,
  });
}
// 比例列表
export function server_notes_list<T = any>(opts?: any) {
  return instance({
    method: 'post',
    url: '/server/notes/list',
    opts,
  });
}
// 修改奖励系数
export function server_notes_reward_factor_update<T = any>(opts?: any) {
  return instance({
    method: 'post',
    url: '/server/notes/reward/factor/update',
    opts,
  });
}
// 修改当前比例
export function server_notes_update<T = any>(opts?: any) {
  return instance({
    method: 'post',
    url: '/server/notes/update',
    opts,
  });
}
